package com.linkage.lcims.base.po.cdma;

import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="C_PUBLIC_USER"
 *     
*/
public class CPublicUser implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** identifier field */
    private String username;

    /** nullable persistent field */
    private String realm;

    /** nullable persistent field */
    private String password;

    /** persistent field */
    private Integer groupid;

    /** nullable persistent field */
    private Integer allowiptech;

    /** nullable persistent field */
    private String areano;

    /** nullable persistent field */
    private Integer bindtype;

    /** nullable persistent field */
    private Integer status;

    /** nullable persistent field */
    private String ippool;

    /** nullable persistent field */
    private String authorattr;

    /** nullable persistent field */
    private String mnhakey;

    /** nullable persistent field */
    private Integer noauthflag;

    /** persistent field */
    private Date opendate;

    /** persistent field */
    private String openoperator;

    /** nullable persistent field */
    private Date moddate;

    /** nullable persistent field */
    private String modoperator;

    /** full constructor */
    public CPublicUser(String username, String realm, String password, Integer groupid, Integer allowiptech, String areano, Integer bindtype, Integer status, String ippool, String authorattr, String mnhakey, Integer noauthflag, Date opendate, String openoperator, Date moddate, String modoperator) {
        this.username = username;
        this.realm = realm;
        this.password = password;
        this.groupid = groupid;
        this.allowiptech = allowiptech;
        this.areano = areano;
        this.bindtype = bindtype;
        this.status = status;
        this.ippool = ippool;
        this.authorattr = authorattr;
        this.mnhakey = mnhakey;
        this.noauthflag = noauthflag;
        this.opendate = opendate;
        this.openoperator = openoperator;
        this.moddate = moddate;
        this.modoperator = modoperator;
    }

    /** default constructor */
    public CPublicUser() {
    }

    /** minimal constructor */
    public CPublicUser(String username, Integer groupid, Date opendate, String openoperator) {
        this.username = username;
        this.groupid = groupid;
        this.opendate = opendate;
        this.openoperator = openoperator;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="USERNAME"
     *         
     */
    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    /** 
     *            @hibernate.property
     *             column="REALM"
     *             length="48"
     *         
     */
    public String getRealm() {
        return this.realm;
    }

    public void setRealm(String realm) {
        this.realm = realm;
    }

    /** 
     *            @hibernate.property
     *             column="PASSWORD"
     *             length="32"
     *         
     */
    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /** 
     *            @hibernate.property
     *             column="GROUPID"
     *             length="22"
     *             not-null="true"
     *         
     */
    public Integer getGroupid() {
        return this.groupid;
    }

    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    /** 
     *            @hibernate.property
     *             column="ALLOWIPTECH"
     *             length="22"
     *         
     */
    public Integer getAllowiptech() {
        return this.allowiptech;
    }

    public void setAllowiptech(Integer allowiptech) {
        this.allowiptech = allowiptech;
    }

    /** 
     *            @hibernate.property
     *             column="AREANO"
     *             length="20"
     *         
     */
    public String getAreano() {
        return this.areano;
    }

    public void setAreano(String areano) {
        this.areano = areano;
    }

    /** 
     *            @hibernate.property
     *             column="BINDTYPE"
     *             length="22"
     *         
     */
    public Integer getBindtype() {
        return this.bindtype;
    }

    public void setBindtype(Integer bindtype) {
        this.bindtype = bindtype;
    }

    /** 
     *            @hibernate.property
     *             column="STATUS"
     *             length="22"
     *         
     */
    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /** 
     *            @hibernate.property
     *             column="IPPOOL"
     *             length="20"
     *         
     */
    public String getIppool() {
        return this.ippool;
    }

    public void setIppool(String ippool) {
        this.ippool = ippool;
    }

    /** 
     *            @hibernate.property
     *             column="AUTHORATTR"
     *             length="128"
     *         
     */
    public String getAuthorattr() {
        return this.authorattr;
    }

    public void setAuthorattr(String authorattr) {
        this.authorattr = authorattr;
    }

    /** 
     *            @hibernate.property
     *             column="MNHAKEY"
     *             length="20"
     *         
     */
    public String getMnhakey() {
        return this.mnhakey;
    }

    public void setMnhakey(String mnhakey) {
        this.mnhakey = mnhakey;
    }

    /** 
     *            @hibernate.property
     *             column="NOAUTHFLAG"
     *             length="22"
     *         
     */
    public Integer getNoauthflag() {
        return this.noauthflag;
    }

    public void setNoauthflag(Integer noauthflag) {
        this.noauthflag = noauthflag;
    }

    /** 
     *            @hibernate.property
     *             column="OPENDATE"
     *             length="7"
     *             not-null="true"
     *         
     */
    public Date getOpendate() {
        return this.opendate;
    }

    public void setOpendate(Date opendate) {
        this.opendate = opendate;
    }

    /** 
     *            @hibernate.property
     *             column="OPENOPERATOR"
     *             length="20"
     *             not-null="true"
     *         
     */
    public String getOpenoperator() {
        return this.openoperator;
    }

    public void setOpenoperator(String openoperator) {
        this.openoperator = openoperator;
    }

    /** 
     *            @hibernate.property
     *             column="MODDATE"
     *             length="7"
     *         
     */
    public Date getModdate() {
        return this.moddate;
    }

    public void setModdate(Date moddate) {
        this.moddate = moddate;
    }

    /** 
     *            @hibernate.property
     *             column="MODOPERATOR"
     *             length="20"
     *         
     */
    public String getModoperator() {
        return this.modoperator;
    }

    public void setModoperator(String modoperator) {
        this.modoperator = modoperator;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("username", getUsername())
            .toString();
    }

}
